
package com.zy.ems.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.zy.ems.common.base.BaseEntity;

public class PaperEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 试卷ID(db_column: id)
     */
    private Integer id;

    /**
     * 试卷名称(db_column: name)
     */
    private String name;

    /**
     * 名称简写(db_column: shot_name)
     */
    private String shotName;

    /**
     * 试卷类型(db_column: type)
     */
    private Boolean type;

    /**
     * 判卷类型(1:系统自动阅卷，2:人工参与阅卷)(db_column: check_type)
     */
    private Boolean checkType;

    /**
     * 数据状态(1:启用,0:禁用)(db_column: status)
     */
    private Boolean status;

    /**
     * 试卷题目ID(db_column: question_ids)
     */
    private String questionIds;

    /**
     * 创建时间(db_column: create_time)
     */
    private Integer createTime;

    /**
     * 更新时间(db_column: update_time)
     */
    private Integer updateTime;

    /**
     * 创建人(db_column: create_id)
     */
    private Integer createId;

    /**
     * 更新人(db_column: update_id)
     */
    private Integer updateId;


    public PaperEntity(){
    }

    public PaperEntity(
            Integer id
            ){
        this.id = id;
    }


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer value) {
        this.id = value;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String value) {
        this.name = value;
    }

    public String getShotName() {
        return this.shotName;
    }

    public void setShotName(String value) {
        this.shotName = value;
    }

    public Boolean getType() {
        return this.type;
    }

    public void setType(Boolean value) {
        this.type = value;
    }

    public Boolean getCheckType() {
        return this.checkType;
    }

    public void setCheckType(Boolean value) {
        this.checkType = value;
    }

    public Boolean getStatus() {
        return this.status;
    }

    public void setStatus(Boolean value) {
        this.status = value;
    }

    public String getQuestionIds() {
        return this.questionIds;
    }

    public void setQuestionIds(String value) {
        this.questionIds = value;
    }

    public Integer getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Integer value) {
        this.createTime = value;
    }

    public Integer getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Integer value) {
        this.updateTime = value;
    }

    public Integer getCreateId() {
        return this.createId;
    }

    public void setCreateId(Integer value) {
        this.createId = value;
    }

    public Integer getUpdateId() {
        return this.updateId;
    }

    public void setUpdateId(Integer value) {
        this.updateId = value;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("Id", getId())
            .append("Name", getName())
            .append("ShotName", getShotName())
            .append("Type", getType())
            .append("CheckType", getCheckType())
            .append("Status", getStatus())
            .append("QuestionIds", getQuestionIds())
            .append("CreateTime", getCreateTime())
            .append("UpdateTime", getUpdateTime())
            .append("CreateId", getCreateId())
            .append("UpdateId", getUpdateId())
            .toString();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder()
            .append(getId())
            .toHashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if(!(obj instanceof PaperEntity)) {
            return false;
        }
        if(this == obj) {
            return true;
        }
        PaperEntity other = (PaperEntity) obj;
        return new EqualsBuilder()
            .append(getId(), other.getId())
            .isEquals();
    }
}

